* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    padding: 20px;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

.sidebar {
    width: 30%;
    background-color: #f9f9f9;
    padding: 15px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.main-content {
    width: 70%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.date {
    color: #666;
    font-size: 12px;
}

.reason {
    font-size: 12px;
    color: #ff4d4f;
    margin-bottom: 12px;
}

.sector-list-container {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
    padding-right: 5px;
}

.sector-list-container::-webkit-scrollbar {
    width: 6px;
}

.sector-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sector-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sector-list-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.sector-list {
    list-style: none;
}

.sector-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px dashed #eee;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.sector-item:hover {
    background-color: #f0f7ff;
}

.sector-item.active {
    background-color: #ddd;
    border-left: 3px solid #1890ff;
    font-weight: bold;
}

.sector-name {
    display: flex;
    align-items: center;
}

.star {
    color: #ffcc00;
    margin-right: 5px;
}

.sector-strength {
    color: #666;
    margin-right: 8px;
}

.sector-rise {
    color: #ff4d4f;
    font-weight: bold;
}

.table-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 500px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 6px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

th {
    background-color: #f0f0f0;
    font-weight: bold;
    color: #333;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f9f9f9;
}

.stock-code {
    color: #1890ff;
}

.stock-name {
    color: #333;
}

.stock-rise {
    color: #ff4d4f;
    font-weight: bold;
}

.stock-speed {
    color: #666;
}

.stock-leading {
    background-color: #e6f7ff;
    color: #1890ff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.stock-main-net {
    color: #52c41a;
    font-weight: bold;
}

.stock-main-net.negative {
    color: #ff4d4f;
}

.stock-consecutive {
    color: #fa8c16;
    font-weight: bold;
}

.stock-theme {
    color: #722ed1;
    font-size: 11px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer {
    margin-top: 15px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.current-sector {
    margin-bottom: 10px;
    font-size: 14px;
    color: #1890ff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar, .main-content {
        width: 100%;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .sector-list-container {
        max-height: 300px;
    }
}

.Wdate {
    width: 200px;
    padding: 12px 5px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2395a5a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* 焦点状态 */
.Wdate:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* 悬停状态 */
.Wdate:hover {
    border-color: #bdc3c7;
}
